package com.lill.org.service;

import com.lill.common.component.util.Query;
import com.lill.org.model.EmployeeModel;

import java.util.List;
import java.util.Map;

/**
 * 员工管理Service接口
 *
 * @author lill
 * @date 2019-04-25 20:45:24
 */
public interface IEmployeeService {

    /**
     * 根据主键查询实体
     *
     * @param id 主键
     * @return 实体
     */
    EmployeeModel queryObject(String id);

    /**
     * 分页查询
     *
     * @param map 参数
     * @return list
     */
    List<EmployeeModel> queryList(Map<String, Object> map);

    /**
     * 分页统计总数
     *
     * @param map 参数
     * @return 总数
     */
    int queryTotal(Map<String, Object> map);

    /**
     * 保存实体
     *
     * @param orgEmployee 实体
     * @return 保存条数
     */
    int save(EmployeeModel employee);
    
    EmployeeModel saveBackModel(EmployeeModel employee);

    /**
     * 根据主键更新实体
     *
     * @param orgEmployee 实体
     * @return 更新条数
     */
    int update(EmployeeModel employee);

    /**
     * 根据主键删除
     *
     * @param id
     * @return 删除条数
     */
    int delete(String id);

    /**
     * 根据主键批量删除
     *
     * @param ids
     * @return 删除条数
     */
    int deleteBatch(String[] ids);
    
    /**
     * 逻辑删除
     * @param map
     * @return
     */
    int deleteLogicByMap(Map<String, Object> map);

	int updatePassword(Map<String, Object> mapParam);
	
	List<Map<String, Object>> queryPersonList(Map<String, Object> params);

    List<EmployeeModel> queryEmployeeList(Query query);
    
    String queryUserIdByEmployeeId(String employeeId);
    
    List<Map<String, Object>> queryPersonOhterList(Map<String, Object> params);
    
    List<String> queryShopManagerUserIdByBranchId(String branchId);
    
    List<EmployeeModel> queryShopManagerEmployeeByBranchId(Map<String, Object> mapParam);
    List<Map<String, Object>> queryEmployeeByBranchId(Map<String, Object> params);
    List<Map<String, Object>> queryRepeatEmployee(String cid,String bid,String phones);

    List<Map<String, Object>> queryCustomerBySendMsg(Map<String, Object> params);


    List<Map<String, Object>> queryEmpByMaintenance();
}
